package com.wowo.hello;

public class BeanDemo {
    private BeanDemo(){
        System.out.println("in BeanDemo.....");
    }
    public String hello(){
        return "hello Spring";
    }
    //写一个工厂方法 静态 get/new/Instance
    public static BeanDemo getInstance(){
        System.out.println("in getInstance.....");
        return new BeanDemo();
    }
}
